use day19::workflow::*;

#[test]
fn test_str_to_workflow() {
    let workflow: Workflow = "px{a<2006:qkq,m>2090:A,rfg}".into();
    assert_eq!(
        workflow,
        Workflow::new(
            "px".to_string(),
            vec![
                "a<2006:qkq".into(),
                "m>2090:A".into(),
                "rfg".into(),
            ]
        )
    );
}